#include <stdio.h>

int main(){
    FILE *fp=NULL;
    fp=fopen("./test.txt","w+");
    fprintf(fp,"A test program.\n");
    fputs("A new line\n",fp);
    fclose(fp);
}

